package cn.daniel.video.constants;

import lombok.Data;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties("aliyun.vod.file")
public class VideoConstants implements InitializingBean {


    private String keyid;
    private String keysecret;



    public static String KEY_ID;
    public static String KEY_SECRET;



    @Override
    public void afterPropertiesSet() throws Exception {
        KEY_ID=keyid;
        KEY_SECRET=keysecret;
    }
}
